<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // fn={}
      // function fn() {}
      const fn = function () {};
      const user = {
        sayBye: function () {}, // sayBye:{}
      };
      const arr = [function () {}];
      console.dir(fn);
      console.dir(fn.name);
      console.dir(user.sayBye);
      console.dir(user.sayBye.name);
      console.dir(arr[0]);
    </script>
  </body>
</html>
